package Hibernate.cn.edu.scau.cmi.lishuoxin.domain;

import java.io.Serializable;

public class Student implements Serializable{
	
	private Long id;
	private String name;
	private Teacher teacher;  //指导老师
	
	public Student() {
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Teacher getTeacher() {
		return teacher;
	}

	public void setTeacher(Teacher teacher) {
		this.teacher = teacher;
	}

	@Override
	public String toString() {
		return "Student [id=" + id + ", name=" + name + "]";
	}
	
}
